<!DOCTYPE html><html><head>
      <title>3PHP&#x57FA;&#x672C;&#x8BED;&#x6CD5;</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      <link rel="stylesheet" href="file:///C:\Users\Administrator\.vscode\extensions\shd101wyy.markdown-preview-enhanced-0.4.3\node_modules\@shd101wyy\mume\dependencies\katex\katex.min.css">
      
      

      
      
      
      
      
      

      <style>
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}

/* highlight */
pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em;
}
pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: hsla(24, 20%, 50%,.08);
  background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}

pre[data-line] .line-highlight:before, 
pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: .4em;
  left: .6em;
  min-width: 1em;
  padding: 0 .5em;
  background-color: hsla(24, 20%, 50%,.4);
  color: hsl(24, 20%, 95%);
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: .3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}

pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: .4em;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px + 2em)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{padding:0 1.6em;margin-top:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li{margin-bottom:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{list-style-type:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  150px);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */

      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview  ">
      <h1 class="mume-header" id="php%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95">PHP&#x57FA;&#x672C;&#x8BED;&#x6CD5;</h1>

<ul>
<li><a href="#php%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95">PHP&#x57FA;&#x672C;&#x8BED;&#x6CD5;</a>
<ul>
<li><a href="#-%E4%B8%80-php-%E8%AF%AD%E6%B3%95">:-: &#x4E00;&#x3001;<code>php</code> &#x8BED;&#x6CD5;</a>
<ul>
<li><a href="#1-%E8%AF%AD%E8%A8%80%E6%A0%87%E8%AE%B0">1&#x3001;&#x8BED;&#x8A00;&#x6807;&#x8BB0;</a></li>
<li><a href="#2-echo-%E8%BE%93%E5%87%BA">2&#x3001;<code>echo</code> &#x8F93;&#x51FA;</a></li>
<li><a href="#3-php-%E5%B5%8C%E5%85%A5%E5%88%B0-html-%E4%B8%AD">3&#x3001;<code>php</code> &#x5D4C;&#x5165;&#x5230; <code>HTML</code> &#x4E2D;</a></li>
<li><a href="#4-%E8%AF%AD%E5%8F%A5%E7%BB%93%E6%9D%9F%E7%AC%A6">4&#x3001;&#x8BED;&#x53E5;&#x7ED3;&#x675F;&#x7B26; <code>;</code></a></li>
</ul>
</li>
<li><a href="#-%E4%BA%8C-php%E6%B3%A8%E9%87%8A">:-: &#x4E8C;&#x3001;php&#x6CE8;&#x91CA;</a></li>
<li><a href="#-%E4%B8%89-php-%E5%8F%98%E9%87%8F">:-: &#x4E09;&#x3001;<code>php</code> &#x53D8;&#x91CF;</a>
<ul>
<li><a href="#1-%E5%A3%B0%E6%98%8E%E5%8F%98%E9%87%8F">1&#x3001;&#x58F0;&#x660E;&#x53D8;&#x91CF;</a></li>
<li><a href="#2-%E5%8F%98%E9%87%8F%E5%91%BD%E5%90%8D%E8%A7%84%E5%88%99">2&#x3001;&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x5219;</a></li>
<li><a href="#3-%E5%BC%95%E5%8F%B7%E4%BD%9C%E7%94%A8">3&#x3001;&#x5F15;&#x53F7;&#x4F5C;&#x7528;</a></li>
<li><a href="#4-%E8%BD%AC%E7%A7%BB%E5%AD%97%E7%AC%A6">4&#x3001;&#x8F6C;&#x79FB;&#x5B57;&#x7B26; <code>\</code></a></li>
</ul>
</li>
<li><a href="#-%E5%9B%9B-php-%E5%B8%B8%E9%87%8F">:-: &#x56DB;&#x3001;<code>php</code> &#x5E38;&#x91CF;</a></li>
<li><a href="#-%E4%BA%94-php-%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B">:-: &#x4E94;&#x3001;<code>php</code> &#x6570;&#x636E;&#x7C7B;&#x578B;</a>
<ul>
<li><a href="#1-%E5%B8%83%E5%B0%94%E5%9E%8B">1&#x3001;&#x5E03;&#x5C14;&#x578B;</a></li>
<li><a href="#2-%E6%95%B4%E5%9E%8B">2&#x3001;&#x6574;&#x578B;</a></li>
<li><a href="#3-%E6%B5%AE%E7%82%B9%E5%9E%8B">3&#x3001;&#x6D6E;&#x70B9;&#x578B;</a></li>
<li><a href="#4-%E5%AD%97%E7%AC%A6%E4%B8%B2">4&#x3001;&#x5B57;&#x7B26;&#x4E32;</a></li>
<li><a href="#5-null">5&#x3001;NULL</a></li>
</ul>
</li>
<li><a href="#-%E5%85%AD-php-%E5%87%BD%E6%95%B0">:-: &#x516D;&#x3001;<code>php</code> &#x51FD;&#x6570;</a>
<ul>
<li><a href="#1-is_bool-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E5%B8%83%E5%B0%94%E5%9E%8B">1&#x3001;<code>is_bool</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x5E03;&#x5C14;&#x578B;</a></li>
<li><a href="#2-is_int-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E6%95%B4%E5%9E%8B">2&#x3001;<code>is_int</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6574;&#x578B;</a></li>
<li><a href="#3-is_float-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E6%B5%AE%E7%82%B9%E5%9E%8B">3&#x3001;<code>is_float</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6D6E;&#x70B9;&#x578B;</a></li>
<li><a href="#4-is_string-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E5%AD%97%E7%AC%A6%E4%B8%B2">4&#x3001;<code>is_string</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x5B57;&#x7B26;&#x4E32;</a></li>
<li><a href="#5-is_null-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E4%B8%BA%E7%A9%BA">5&#x3001;<code>is_null</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x4E3A;&#x7A7A;</a></li>
<li><a href="#6-isset-%E5%88%A4%E6%96%AD%E5%8F%98%E9%87%8F%E6%98%AF%E5%90%A6%E6%9C%89%E5%80%BC">6&#x3001;<code>isset</code> &#x5224;&#x65AD;&#x53D8;&#x91CF;&#x662F;&#x5426;&#x6709;&#x503C;</a></li>
<li><a href="#7-empty-%E5%88%A4%E6%96%AD%E5%8F%98%E9%87%8F%E6%98%AF%E5%90%A6%E4%B8%BA%E7%A9%BA">7&#x3001;<code>empty</code> &#x5224;&#x65AD;&#x53D8;&#x91CF;&#x662F;&#x5426;&#x4E3A;&#x7A7A;</a></li>
<li><a href="#8-unset-%E9%87%8A%E6%94%BE%E5%8F%98%E9%87%8F">8&#x3001;<code>unset</code> &#x91CA;&#x653E;&#x53D8;&#x91CF;</a></li>
</ul>
</li>
<li><a href="#-%E4%B8%83-php-%E8%BF%90%E7%AE%97%E7%AC%A6">:-: &#x4E03;&#x3001;<code>php</code> &#x8FD0;&#x7B97;&#x7B26;</a></li>
<li><a href="#-%E5%85%AB-php-%E8%B5%8B%E5%80%BC%E8%BF%90%E7%AE%97%E7%AC%A6">:-: &#x516B;&#x3001;<code>php</code> &#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;</a>
<ul>
<li><a href="#%E4%B9%9D-php-%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6">&#x4E5D;&#x3001;<code>php</code> &#x6BD4;&#x8F83;&#x8FD0;&#x7B97;&#x7B26;</a></li>
<li><a href="#1-%E5%A4%A7%E4%BA%8E">1&#x3001;<code>&gt;</code> &#x5927;&#x4E8E;</a></li>
<li><a href="#2-%E5%A4%A7%E4%BA%8E%E7%AD%89%E4%BA%8E">2&#x3001;<code>&gt;=</code> &#x5927;&#x4E8E;&#x7B49;&#x4E8E;</a></li>
<li><a href="#3-%E5%B0%8F%E4%BA%8E">3&#x3001;<code>&lt;</code> &#x5C0F;&#x4E8E;</a></li>
<li><a href="#4-%E5%B0%8F%E4%BA%8E%E7%AD%89%E4%BA%8E">4&#x3001;<code>&lt;=</code> &#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;</a></li>
<li><a href="#5-%E7%AD%89%E4%BA%8E">5&#x3001;<code>==</code> &#x7B49;&#x4E8E;</a></li>
<li><a href="#6-%E4%B8%8D%E7%AD%89%E4%BA%8E">6&#x3001;<code>!=</code> &#x4E0D;&#x7B49;&#x4E8E;</a></li>
<li><a href="#7-%E6%81%92%E7%AD%89%E4%BA%8E">7&#x3001;<code>===</code> &#x6052;&#x7B49;&#x4E8E;</a>
<ul>
<li><a href="#8-%E6%81%92%E4%B8%8D%E7%AD%89">8&#x3001;<code>!==</code> &#x6052;&#x4E0D;&#x7B49;</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#-%E5%8D%81-php-%E9%80%BB%E8%BE%91%E8%BF%90%E7%AE%97%E7%AC%A6">:-: &#x5341;&#x3001;<code>php</code> &#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;</a>
<ul>
<li><a href="#1-and-%E5%92%8C">1&#x3001;<code>and</code> &#x548C; <code>&amp;&amp;</code></a></li>
<li><a href="#2-or-%E5%92%8C">2&#x3001;<code>or</code> &#x548C; <code>||</code></a></li>
<li><a href="#3-xor">3&#x3001;<code>xor</code></a></li>
<li><a href="#4">4&#x3001;<code>!</code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
<hr>
<h2 class="mume-header" id="-%E4%B8%80-php-%E8%AF%AD%E6%B3%95">:-: &#x4E00;&#x3001;<code>php</code> &#x8BED;&#x6CD5;</h2>

<h3 class="mume-header" id="1-%E8%AF%AD%E8%A8%80%E6%A0%87%E8%AE%B0">1&#x3001;&#x8BED;&#x8A00;&#x6807;&#x8BB0;</h3>

<ul>
<li>&#x5F00;&#x59CB;&#x6807;&#x8BB0; <code>&lt;?php</code> &#x548C; &#x7ED3;&#x675F;&#x6807;&#x8BB0; <code>?&gt;</code> &#x4E2D;&#x95F4;&#x5199; <code>PHP</code> &#x4EE3;&#x7801;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>

<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="2-echo-%E8%BE%93%E5%87%BA">2&#x3001;<code>echo</code> &#x8F93;&#x51FA;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;Hello World!&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="3-php-%E5%B5%8C%E5%85%A5%E5%88%B0-html-%E4%B8%AD">3&#x3001;<code>php</code> &#x5D4C;&#x5165;&#x5230; <code>HTML</code> &#x4E2D;</h3>

<ul>
<li>&#x53EF;&#x4EE5;&#x5D4C;&#x5165;&#x591A;&#x4E2A; <code>PHP</code> &#x6807;&#x8BB0;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token operator">&lt;</span><span class="token operator">!</span><span class="token constant">DOCTYPE</span> html<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span>html lang<span class="token operator">=</span><span class="token double-quoted-string string">&quot;en&quot;</span><span class="token operator">&gt;</span>
<span class="token operator">&lt;</span>head<span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>meta charset<span class="token operator">=</span><span class="token double-quoted-string string">&quot;UTF-8&quot;</span><span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>title<span class="token operator">&gt;</span>Document<span class="token operator">&lt;</span><span class="token operator">/</span>title<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>head<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span>body<span class="token operator">&gt;</span>
    <span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&#x6211;&#x662F;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span> <span class="token delimiter important">?&gt;</span>
    <span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&#x6211;&#x662F;&#x9EC4;&#x84C9;&apos;</span><span class="token punctuation">;</span> <span class="token delimiter important">?&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>body<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>html<span class="token operator">&gt;</span>
</pre><h3 class="mume-header" id="4-%E8%AF%AD%E5%8F%A5%E7%BB%93%E6%9D%9F%E7%AC%A6">4&#x3001;&#x8BED;&#x53E5;&#x7ED3;&#x675F;&#x7B26; <code>;</code></h3>

<hr>
<h2 class="mume-header" id="-%E4%BA%8C-php%E6%B3%A8%E9%87%8A">:-: &#x4E8C;&#x3001;php&#x6CE8;&#x91CA;</h2>

<ul>
<li><code>php</code> &#x6267;&#x884C;&#x4F1A;&#x8DF3;&#x8FC7;&#x6CE8;&#x91CA;</li>
<li>&#x6CE8;&#x91CA;&#x66F4;&#x65B9;&#x4FBF;&#x7684;&#x7406;&#x89E3;&#x4EE3;&#x7801;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token shell-comment comment">#   php&#x4E2D;&#x7684;&#x5355;&#x884C;&#x6CE8;&#x91CA;</span>

<span class="token comment">//  php&#x4E2D;&#x7684;&#x5355;&#x884C;&#x6CE8;&#x91CA;</span>

<span class="token comment">/*
 *  php&#x4E2D;&#x7684;&#x591A;&#x884C;&#x6CE8;&#x91CA;
*/</span>

<span class="token comment">/*
                    _oo8oo_
                   o8888888o
                   88&quot; . &quot;88
                   (| -_- |)
                   0\  =  /0
                 ___/&apos;===&apos;\___
               .&apos; \\|     |// &apos;.
              / \\|||  :  |||// \
             / _||||| -:- |||||_ \
            |   | \\\  -  /// |   |
            | \_|  &apos;&apos;\---/&apos;&apos;  |_/ |
            \  .-\__  &apos;-&apos;  __/-.  /
          ___&apos;. .&apos;  /--.--\  &apos;. .&apos;___
       .&quot;&quot; &apos;&lt;  &apos;.___\_&lt;|&gt;_/___.&apos;  &gt;&apos; &quot;&quot;.
      | | :  `- \`.:`\ _ /`:.`/ -`  : | |
      \  \ `-.   \_ __\ /__ _/   .-` /  /
  =====`-.____`.___ \_____/ ___.`____.-`=====
                    `=---=`
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            &#x4F5B;&#x7956;&#x4FDD;&#x4F51;        &#x6C38;&#x65E0;bug
*/</span>
</pre><hr>
<h2 class="mume-header" id="-%E4%B8%89-php-%E5%8F%98%E9%87%8F">:-: &#x4E09;&#x3001;<code>php</code> &#x53D8;&#x91CF;</h2>

<h3 class="mume-header" id="1-%E5%A3%B0%E6%98%8E%E5%8F%98%E9%87%8F">1&#x3001;&#x58F0;&#x660E;&#x53D8;&#x91CF;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$a</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="2-%E5%8F%98%E9%87%8F%E5%91%BD%E5%90%8D%E8%A7%84%E5%88%99">2&#x3001;&#x53D8;&#x91CF;&#x547D;&#x540D;&#x89C4;&#x5219;</h3>

<ul>
<li>&#x5F00;&#x5934;&#x4E0D;&#x80FD;&#x7528;&#x6570;&#x5B57;</li>
<li>&#x4E2D;&#x95F4;&#x4E0D;&#x80FD;&#x6709;&#x7A7A;&#x683C;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token shell-comment comment"># &#x4E0B;&#x5212;&#x7EBF;&#x547D;&#x540D;&#x6CD5;</span>
    <span class="token variable">$my_name</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$my_name</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token shell-comment comment"># &#x5C0F;&#x9A7C;&#x5CF0;&#x547D;&#x540D;&#x6CD5;</span>
    <span class="token variable">$myName</span>  <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x9EC4;&#x84C9;&apos;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$myName</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token shell-comment comment"># &#x5927;&#x9A7C;&#x5CF0;&#x547D;&#x540D;&#x6CD5;</span>
    <span class="token variable">$MyName</span>  <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x90ED;&#x9756;&apos;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$MyName</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="3-%E5%BC%95%E5%8F%B7%E4%BD%9C%E7%94%A8">3&#x3001;&#x5F15;&#x53F7;&#x4F5C;&#x7528;</h3>

<ul>
<li>&#x5355;&#x5F15;&#x53F7;&#x91CC;&#x9762;&#x662F;&#x6587;&#x672C;</li>
<li>&#x53CC;&#x5F15;&#x53F7;&#x91CC;&#x9762;&#x53EF;&#x4EE5;&#x662F;&#x6587;&#x672C;&#x548C;&#x53D8;&#x91CF;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$php</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6211;&#x662F;&quot;&#x6B27;&#x9633;&#x514B;&quot;&#xFF01;&apos;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$php</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$php</span> <span class="token operator">=</span> <span class="token double-quoted-string string">&quot;&#x6211;&#x662F;&apos;&#x6B27;&#x9633;&#x514B;&apos;&#xFF01;&quot;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$php</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$name</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$php</span> <span class="token operator">=</span> <span class="token double-quoted-string string">&quot;&#x6211;&#x662F;<span class="token interpolation"><span class="token punctuation">{</span><span class="token variable">$name</span><span class="token punctuation">}</span></span>&#xFF01;&quot;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$php</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="4-%E8%BD%AC%E7%A7%BB%E5%AD%97%E7%AC%A6">4&#x3001;&#x8F6C;&#x79FB;&#x5B57;&#x7B26; <code>\</code></h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token shell-comment comment"># &#x5982;&#x679C;&#x6709;&#x91CD;&#x590D;&#x5F15;&#x53F7;&#xFF0C;&#x9700;&#x8981;&#x5728;&#x5F15;&#x53F7;&#x524D;&#x589E;&#x52A0;&#x8F6C;&#x79FB;&#x5B57;&#x7B26;</span>
    <span class="token variable">$php</span> <span class="token operator">=</span> <span class="token double-quoted-string string">&quot;&#x6211;&#x662F;\&quot;&#x6B27;&#x9633;&#x514B;\&quot;&#xFF01;&quot;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$php</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$php</span> <span class="token operator">=</span> <span class="token double-quoted-string string">&quot;\\&quot;</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token variable">$php</span><span class="token punctuation">;</span>
</pre><hr>
<h2 class="mume-header" id="-%E5%9B%9B-php-%E5%B8%B8%E9%87%8F">:-: &#x56DB;&#x3001;<code>php</code> &#x5E38;&#x91CF;</h2>

<ul>
<li>&#x5E38;&#x91CF;&#x58F0;&#x660E;&#x540E;&#xFF0C;&#x4E0D;&#x5141;&#x8BB8;&#x6539;&#x53D8;</li>
<li>&#x6709;&#x6548;&#x7684;&#x5E38;&#x91CF;&#x540D;&#x4EE5;&#x5B57;&#x7B26;&#x6216;&#x4E0B;&#x5212;&#x7EBF;&#x5F00;&#x5934;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">define</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;SITE_SUFFIX&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;www.xx.com&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token constant">SITE_SUFFIX</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">define</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;OUYANGKE&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token constant">OUYANGKE</span><span class="token punctuation">;</span>
</pre><hr>
<h2 class="mume-header" id="-%E4%BA%94-php-%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B">:-: &#x4E94;&#x3001;<code>php</code> &#x6570;&#x636E;&#x7C7B;&#x578B;</h2>

<table>
<thead>
<tr>
<th><strong>&#x7C7B;&#x578B;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x5E03;&#x5C14;&#x578B; <code>Boolean</code></td>
<td><code>true</code> &#x548C; <code>false</code></td>
</tr>
<tr>
<td>&#x6574;&#x578B; <code>Integer</code></td>
<td>0 - &#x65E0;&#x9650;&#x5927;</td>
</tr>
<tr>
<td>&#x6D6E;&#x70B9;&#x578B; <code>Float</code></td>
<td>&#x5E26;&#x5C0F;&#x6570;&#x7684;&#x6570;&#x5B57;</td>
</tr>
<tr>
<td>&#x5B57;&#x7B26;&#x4E32; <code>String</code></td>
<td>&#x6C49;&#x5B57;&#x3001;&#x82F1;&#x6587;&#x3001;&#x7B26;&#x5408;&#x3001;&#x5176;&#x5B83;&#x56FD;&#x5BB6;&#x8BED;&#x8A00;</td>
</tr>
<tr>
<td>&#x6570;&#x7EC4; <code>Array</code></td>
<td>&#x6570;&#x7EC4;&#x53EF;&#x4EE5;&#x5728;&#x4E00;&#x4E2A;&#x53D8;&#x91CF;&#x4E2D;&#x5B58;&#x50A8;&#x591A;&#x4E2A;&#x503C;</td>
</tr>
<tr>
<td>&#x5BF9;&#x8C61; <code>Object</code></td>
<td>&#x5BF9;&#x8C61;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x4E5F;&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x5B58;&#x50A8;&#x6570;&#x636E;</td>
</tr>
<tr>
<td>&#x7A7A;&#x503C; <code>NULL</code></td>
<td>&#x8868;&#x793A;&#x53D8;&#x91CF;&#x6CA1;&#x6709;&#x503C;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>echo &#x8F93;&#x51FA;&#x6570;&#x636E;&#x503C;&#xFF0C;&#x5F00;&#x53D1;&#x65F6;&#x4F7F;&#x7528;<br>
var_dump &#x53EF;&#x4EE5;&#x6253;&#x5370;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x548C;&#x503C;&#xFF0C;&#x6D4B;&#x8BD5;&#x65F6;&#x4F7F;&#x7528;</p>
</blockquote>
<h3 class="mume-header" id="1-%E5%B8%83%E5%B0%94%E5%9E%8B">1&#x3001;&#x5E03;&#x5C14;&#x578B;</h3>

<ul>
<li>&#x5E03;&#x5C14;&#x578B;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x6761;&#x4EF6;&#x5224;&#x65AD;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$x</span> <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$x</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$y</span> <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$y</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="2-%E6%95%B4%E5%9E%8B">2&#x3001;&#x6574;&#x578B;</h3>

<ul>
<li>&#x6574;&#x6570;&#x4E0D;&#x80FD;&#x5305;&#x542B;&#x9017;&#x53F7;&#x6216;&#x7A7A;&#x683C;</li>
<li>&#x6574;&#x6570;&#x662F;&#x6CA1;&#x6709;&#x5C0F;&#x6570;&#x70B9;&#x7684;</li>
<li>&#x6574;&#x6570;&#x53EF;&#x4EE5;&#x662F;&#x6B63;&#x6570;&#x6216;&#x8D1F;&#x6570;</li>
<li>&#x6574;&#x578B;&#x53EF;&#x4EE5;&#x7528;&#x4E09;&#x79CD;&#x683C;&#x5F0F;&#x6765;&#x6307;&#x5B9A;&#xFF1A;&#x5341;&#x8FDB;&#x5236;&#x3001;&#x5341;&#x516D;&#x8FDB;&#x5236;&#x3001;&#x516B;&#x8FDB;&#x5236;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$number</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$number</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$number</span> <span class="token operator">=</span> <span class="token number">67</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$number</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$number</span> <span class="token operator">=</span> <span class="token operator">-</span><span class="token number">322</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$number</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="3-%E6%B5%AE%E7%82%B9%E5%9E%8B">3&#x3001;&#x6D6E;&#x70B9;&#x578B;</h3>

<ul>
<li>&#x5E26;&#x5C0F;&#x6570;&#x90E8;&#x5206;&#x7684;&#x6570;&#x5B57;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$number</span> <span class="token operator">=</span> <span class="token number">10.03</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$number</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$number</span> <span class="token operator">=</span> <span class="token operator">-</span><span class="token number">88.23</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$number</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="4-%E5%AD%97%E7%AC%A6%E4%B8%B2">4&#x3001;&#x5B57;&#x7B26;&#x4E32;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6211;&#x662F;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;My name is ou yang ke&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="5-null">5&#x3001;NULL</h3>

<ul>
<li>NULL &#x503C;&#x8868;&#x793A;&#x53D8;&#x91CF;&#x6CA1;&#x6709;&#x503C;</li>
</ul>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$null</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$null</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$null</span> <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><blockquote>
<p>&#x5907;&#xFF1A;&#x6570;&#x7EC4;&#x548C;&#x5BF9;&#x8C61;&#xFF0C;&#x6BD4;&#x8F83;&#x590D;&#x6742;&#xFF0C;&#x540E;&#x9762;&#x7684;&#x8BFE;&#x7A0B;&#x4F1A;&#x5355;&#x72EC;&#x8BB2;</p>
</blockquote>
<hr>
<h2 class="mume-header" id="-%E5%85%AD-php-%E5%87%BD%E6%95%B0">:-: &#x516D;&#x3001;<code>php</code> &#x51FD;&#x6570;</h2>

<ul>
<li><code>php</code> &#x81EA;&#x5E26;&#x7684;&#x4E00;&#x4E9B;&#x529F;&#x80FD;&#x65B9;&#x6CD5;&#xFF0C;&#x53EB;&#x51FD;&#x6570;</li>
<li><code>php</code> &#x62E5;&#x6709;1000&#x591A;&#x4E2A;&#x5185;&#x5EFA;&#x7684;&#x51FD;&#x6570;&#x51FD;&#x6570;</li>
</ul>
<table>
<thead>
<tr>
<th><strong>&#x51FD;&#x6570;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>is_bool()</code></td>
<td>&#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x5E03;&#x5C14;&#x578B;</td>
</tr>
<tr>
<td><code>is_int()</code></td>
<td>&#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6574;&#x578B;</td>
</tr>
<tr>
<td><code>is_float()</code></td>
<td>&#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6D6E;&#x70B9;&#x578B;</td>
</tr>
<tr>
<td><code>is_string()</code></td>
<td>&#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x5B57;&#x7B26;&#x4E32;</td>
</tr>
<tr>
<td><code>is_null()</code></td>
<td>&#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x4E3A;&#x7A7A;</td>
</tr>
<tr>
<td><code>isset()</code></td>
<td>&#x5224;&#x65AD;&#x53D8;&#x91CF;&#x662F;&#x5426;&#x6709;&#x503C;</td>
</tr>
<tr>
<td><code>empty()</code></td>
<td>&#x5224;&#x65AD;&#x53D8;&#x91CF;&#x662F;&#x5426;&#x4E3A;&#x7A7A;</td>
</tr>
<tr>
<td><code>unset()</code></td>
<td>&#x91CA;&#x653E;&#x53D8;&#x91CF;</td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="1-is_bool-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E5%B8%83%E5%B0%94%E5%9E%8B">1&#x3001;<code>is_bool</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x5E03;&#x5C14;&#x578B;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_bool</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_bool</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token number">33</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_bool</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_bool</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="2-is_int-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E6%95%B4%E5%9E%8B">2&#x3001;<code>is_int</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6574;&#x578B;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_int</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token number">33</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_int</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_int</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="3-is_float-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E6%B5%AE%E7%82%B9%E5%9E%8B">3&#x3001;<code>is_float</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x6D6E;&#x70B9;&#x578B;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_float</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token number">33</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_float</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_float</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token number">22.22</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_float</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="4-is_string-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E5%AD%97%E7%AC%A6%E4%B8%B2">4&#x3001;<code>is_string</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x5B57;&#x7B26;&#x4E32;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_string</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token number">33</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_string</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_string</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$bool</span> <span class="token operator">=</span> <span class="token number">22.22</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_string</span><span class="token punctuation">(</span><span class="token variable">$bool</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="5-is_null-%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E6%98%AF%E4%B8%BA%E7%A9%BA">5&#x3001;<code>is_null</code> &#x5224;&#x65AD;&#x662F;&#x5426;&#x662F;&#x4E3A;&#x7A7A;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_null</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_null</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">is_null</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="6-isset-%E5%88%A4%E6%96%AD%E5%8F%98%E9%87%8F%E6%98%AF%E5%90%A6%E6%9C%89%E5%80%BC">6&#x3001;<code>isset</code> &#x5224;&#x65AD;&#x53D8;&#x91CF;&#x662F;&#x5426;&#x6709;&#x503C;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">isset</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">isset</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;null&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">isset</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">isset</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">isset</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="7-empty-%E5%88%A4%E6%96%AD%E5%8F%98%E9%87%8F%E6%98%AF%E5%90%A6%E4%B8%BA%E7%A9%BA">7&#x3001;<code>empty</code> &#x5224;&#x65AD;&#x53D8;&#x91CF;&#x662F;&#x5426;&#x4E3A;&#x7A7A;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;null&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><h3 class="mume-header" id="8-unset-%E9%87%8A%E6%94%BE%E5%8F%98%E9%87%8F">8&#x3001;<code>unset</code> &#x91CA;&#x653E;&#x53D8;&#x91CF;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token delimiter important">&lt;?php</span>
    <span class="token variable">$str</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">unset</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
<span class="token delimiter important">?&gt;</span>
</pre><hr>
<h2 class="mume-header" id="-%E4%B8%83-php-%E8%BF%90%E7%AE%97%E7%AC%A6">:-: &#x4E03;&#x3001;<code>php</code> &#x8FD0;&#x7B97;&#x7B26;</h2>

<table>
<thead>
<tr>
<th><strong>&#x8FD0;&#x7B97;&#x7B26;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>+</code></td>
<td>&#x76F8;&#x52A0;</td>
</tr>
<tr>
<td><code>-</code></td>
<td>&#x76F8;&#x51CF;</td>
</tr>
<tr>
<td><code>*</code></td>
<td>&#x76F8;&#x4E58;</td>
</tr>
<tr>
<td><code>/</code></td>
<td>&#x76F8;&#x9664;</td>
</tr>
<tr>
<td><code>%</code></td>
<td>&#x53D6;&#x4F59;</td>
</tr>
<tr>
<td><code>++</code></td>
<td>&#x52A0;&#x52A0;</td>
</tr>
<tr>
<td><code>--</code></td>
<td>&#x51CF;&#x51CF;</td>
</tr>
<tr>
<td><code>.</code></td>
<td>&#x8FDE;&#x63A5;&#x3001;&#x7528;&#x5728;&#x5B57;&#x7B26;&#x4E32;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>&#x793A;&#x4F8B;&#xFF1A;</p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token variable">$int1</span> <span class="token operator">=</span> <span class="token number">100</span><span class="token punctuation">;</span>
    <span class="token variable">$int2</span> <span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span> <span class="token operator">+</span> <span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span> <span class="token operator">-</span> <span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span> <span class="token operator">*</span> <span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span> <span class="token operator">/</span> <span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span> <span class="token operator">%</span> <span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span><span class="token operator">++</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span><span class="token operator">--</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token operator">++</span><span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token operator">--</span><span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int1</span> <span class="token punctuation">.</span> <span class="token variable">$int2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>

    <span class="token variable">$var1</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;&#x6B27;&#x9633;&#x514B;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$var2</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;18&#x5C81;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$var1</span> <span class="token punctuation">.</span> <span class="token variable">$var2</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">//&#x4E24;&#x4E2A;&#x53D8;&#x91CF;&#x8FDE;&#x63A5;&#xFF0C;&#x6CA1;&#x95EE;&#x9898;</span>
    <span class="token comment">//&#x4E00;&#x4E2A;&#x53D8;&#x91CF;&#x548C;&#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x6CA1;&#x95EE;&#x9898;</span>
    <span class="token comment">//&#x4E00;&#x4E2A;&#x53D8;&#x91CF;&#x8FDE;&#x63A5;&#x6574;&#x578B;&#xFF0C;&#x5FC5;&#x987B;&#x5728;&#x6574;&#x578B;&#x524D;&#x9762;&#x589E;&#x52A0;&#x7A7A;&#x683C;</span>
</pre><hr>
<h2 class="mume-header" id="-%E5%85%AB-php-%E8%B5%8B%E5%80%BC%E8%BF%90%E7%AE%97%E7%AC%A6">:-: &#x516B;&#x3001;<code>php</code> &#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;</h2>

<table>
<thead>
<tr>
<th><strong>&#x8FD0;&#x7B97;&#x7B26;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>=</code></td>
<td>&#x8D4B;&#x503C;</td>
</tr>
<tr>
<td><code>+=</code></td>
<td>&#x5148;&#x52A0;&#xFF0C;&#x540E;&#x8D4B;&#x503C;</td>
</tr>
<tr>
<td><code>-=</code></td>
<td>&#x5148;&#x51CF;&#xFF0C;&#x540E;&#x8D4B;&#x503C;</td>
</tr>
<tr>
<td><code>*=</code></td>
<td>&#x5148;&#x4E58;&#xFF0C;&#x540E;&#x8D4B;&#x503C;</td>
</tr>
<tr>
<td><code>/=</code></td>
<td>&#x5148;&#x9664;&#xFF0C;&#x540E;&#x8D4B;&#x503C;</td>
</tr>
<tr>
<td><code>%=</code></td>
<td>&#x5148;&#x53D6;&#x4F59;&#xFF0C;&#x540E;&#x8D4B;&#x503C;</td>
</tr>
<tr>
<td><code>.=</code></td>
<td>&#x5148;&#x8FDE;&#x63A5;&#xFF0C;&#x540E;&#x8D4B;&#x503C;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>&#x793A;&#x4F8B;&#xFF1A;</p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token variable">$int</span> <span class="token operator">=</span> <span class="token number">100</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span><span class="token variable">$int</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token operator">+</span><span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token operator">=</span> <span class="token variable">$int</span> <span class="token operator">+</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token operator">-</span><span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token operator">*</span><span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token operator">/</span><span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token operator">%</span><span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$int</span> <span class="token punctuation">.</span><span class="token operator">=</span> <span class="token number">30</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token variable">$int</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
</pre><hr>
<h3 class="mume-header" id="%E4%B9%9D-php-%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6">&#x4E5D;&#x3001;<code>php</code> &#x6BD4;&#x8F83;&#x8FD0;&#x7B97;&#x7B26;</h3>

<table>
<thead>
<tr>
<th><strong>&#x8FD0;&#x7B97;&#x7B26;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>&gt;</code></td>
<td>&#x5927;&#x4E8E;</td>
</tr>
<tr>
<td><code>&gt;=</code></td>
<td>&#x5927;&#x4E8E;&#x7B49;&#x4E8E;</td>
</tr>
<tr>
<td><code>&lt;</code></td>
<td>&#x5C0F;&#x4E8E;</td>
</tr>
<tr>
<td><code>&lt;=</code></td>
<td>&#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;</td>
</tr>
<tr>
<td><code>==</code></td>
<td>&#x7B49;&#x4E8E;</td>
</tr>
<tr>
<td><code>!=</code></td>
<td>&#x4E0D;&#x7B49;&#x4E8E;</td>
</tr>
<tr>
<td><code>===</code></td>
<td>&#x6052;&#x7B49;&#x4E8E;</td>
</tr>
<tr>
<td><code>!==</code></td>
<td>&#x6052;&#x4E0D;&#x7B49;</td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="1-%E5%A4%A7%E4%BA%8E">1&#x3001;<code>&gt;</code> &#x5927;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&gt;</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&gt;</span> <span class="token number">90</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&gt;</span> <span class="token number">110</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">&gt;</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token operator">&gt;</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="2-%E5%A4%A7%E4%BA%8E%E7%AD%89%E4%BA%8E">2&#x3001;<code>&gt;=</code> &#x5927;&#x4E8E;&#x7B49;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&gt;=</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&gt;=</span> <span class="token number">90</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&gt;=</span> <span class="token number">110</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">&gt;=</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token operator">&gt;=</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="3-%E5%B0%8F%E4%BA%8E">3&#x3001;<code>&lt;</code> &#x5C0F;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&lt;</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&lt;</span> <span class="token number">90</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&lt;</span> <span class="token number">110</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">&lt;</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token operator">&lt;</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="4-%E5%B0%8F%E4%BA%8E%E7%AD%89%E4%BA%8E">4&#x3001;<code>&lt;=</code> &#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&lt;=</span> <span class="token number">100</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&lt;=</span> <span class="token number">90</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&lt;=</span> <span class="token number">110</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">&lt;=</span> <span class="token boolean">false</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token operator">&lt;=</span> <span class="token single-quoted-string string">&apos;php&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="5-%E7%AD%89%E4%BA%8E">5&#x3001;<code>==</code> &#x7B49;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">==</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">==</span> <span class="token single-quoted-string string">&apos;true&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="6-%E4%B8%8D%E7%AD%89%E4%BA%8E">6&#x3001;<code>!=</code> &#x4E0D;&#x7B49;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">!=</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">!=</span> <span class="token single-quoted-string string">&apos;true&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="7-%E6%81%92%E7%AD%89%E4%BA%8E">7&#x3001;<code>===</code> &#x6052;&#x7B49;&#x4E8E;</h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">===</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">===</span> <span class="token single-quoted-string string">&apos;true&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h4 class="mume-header" id="8-%E6%81%92%E4%B8%8D%E7%AD%89">8&#x3001;<code>!==</code> &#x6052;&#x4E0D;&#x7B49;</h4>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">!==</span> <span class="token number">100</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">!==</span> <span class="token single-quoted-string string">&apos;true&apos;</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr&gt;&apos;</span><span class="token punctuation">;</span>
</pre><hr>
<h2 class="mume-header" id="-%E5%8D%81-php-%E9%80%BB%E8%BE%91%E8%BF%90%E7%AE%97%E7%AC%A6">:-: &#x5341;&#x3001;<code>php</code> &#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;</h2>

<table>
<thead>
<tr>
<th><strong>&#x8FD0;&#x7B97;&#x7B26;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>and</code> &#x548C; <code>&amp;&amp;</code></td>
<td>&#x4E0E;</td>
</tr>
<tr>
<td><code>or</code> &#x548C; <code>||</code></td>
<td>&#x6216;</td>
</tr>
<tr>
<td><code>xor</code></td>
<td>&#x5F02;&#x6216;</td>
</tr>
<tr>
<td><code>!</code></td>
<td>&#x975E;</td>
</tr>
</tbody>
</table>
<h3 class="mume-header" id="1-and-%E5%92%8C">1&#x3001;<code>and</code> &#x548C; <code>&amp;&amp;</code></h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token comment">//&#x4E24;&#x4E2A;&#x771F;&#xFF0C;&#x8FD4;&#x56DE;&#x771F;&#x3002;&#x6709;&#x4E00;&#x4E2A;&#x662F;&#x5047;&#xFF0C;&#x8FD4;&#x56DE;&#x5047;&#x3002;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">&amp;&amp;</span> <span class="token number">30</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">&amp;&amp;</span> <span class="token boolean">true</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token keyword">and</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">false</span> <span class="token keyword">and</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="2-or-%E5%92%8C">2&#x3001;<code>or</code> &#x548C; <code>||</code></h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token comment">//&#x4E00;&#x4E2A;&#x771F;&#xFF0C;&#x8FD4;&#x56DE;&#x771F;&#x3002;&#x4E24;&#x4E2A;&#x771F;&#xFF0C;&#x8FD4;&#x56DE;&#x771F;&#x3002;&#x4E24;&#x4E2A;&#x5047;&#xFF0C;&#x8FD4;&#x56DE;&#x5047;&#x3002;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">100</span> <span class="token operator">||</span> <span class="token number">30</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token operator">||</span> <span class="token boolean">true</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token keyword">or</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">false</span> <span class="token keyword">or</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="3-xor">3&#x3001;<code>xor</code></h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token comment">//&#x4E00;&#x4E2A;&#x771F;&#x3001;&#x8FD4;&#x56DE;&#x771F;&#x3002;&#x4E24;&#x4E2A;&#x771F;&#xFF0C;&#x8FD4;&#x56DE;&#x5047;&#x3002;&#x4E24;&#x4E2A;&#x5047;&#xFF0C;&#x4E5F;&#x8FD4;&#x56DE;&#x5047;&#x3002;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token number">0</span> <span class="token keyword">xor</span> <span class="token number">1</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token keyword">xor</span> <span class="token boolean">true</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">true</span> <span class="token keyword">xor</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token boolean">false</span> <span class="token keyword">xor</span> <span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
</pre><h3 class="mume-header" id="4">4&#x3001;<code>!</code></h3>

<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token comment">//&#x4E00;&#x4E2A;&#x771F;&#x3001;&#x8FD4;&#x56DE;&#x771F;&#x3002;&#x4E24;&#x4E2A;&#x771F;&#xFF0C;&#x8FD4;&#x56DE;&#x5047;&#x3002;&#x4E24;&#x4E2A;&#x5047;&#xFF0C;&#x4E5F;&#x8FD4;&#x56DE;&#x5047;&#x3002;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token operator">!</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token operator">!</span><span class="token boolean">true</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token operator">!</span><span class="token boolean">false</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token function">var_dump</span><span class="token punctuation">(</span> <span class="token operator">!</span><span class="token number">1</span> <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">echo</span> <span class="token single-quoted-string string">&apos;&lt;hr/&gt;&apos;</span><span class="token punctuation">;</span>
</pre>
      </div>
      
      
    
    
    
    
    
    
    
    
  
    </body></html>